package game;

import cards.Card;

import java.util.List;
import java.util.ArrayList;
import java.util.Collections;

public class PokerPlayer extends Player {
  /** Position on the table. */
  private int tablePosition;

  /** HandRank that is publically visible. */
  private HandRank publicRank;

  /** HandRank that is privately visible. */
  private HandRank privateRank;

  /**
   * Create a player instance. The identifier passed into this constructor must
   * be globally unique.
   * @param id Unique identifier for this player.
   * @param position Position on the table.
   */
  public PokerPlayer(int id, int position) {
    super(id);
    this.tablePosition = position;
    this.publicRank = null;
    this.privateRank = null;
  }

  public HandRank privateHandRank() {
    return privateRank;
  }

  public HandRank publicHandRank() {
    return publicRank;
  }

  void setHandRanks(HandRank pub, HandRank priv) {
    publicRank = pub;
    privateRank = priv;
  }

  public int getTablePosition() {
    return tablePosition;
  }

  void setTablePosition(int newPos) {
    tablePosition = newPos;
  }
}
